<?php
class Qp_Logger extends Doctrine_Record_Listener
{
    public function preInsert(Doctrine_Event $event)
    {
        $e = $event->getInvoker();
        $e->last_name = $e->username . ' zzzzzz';
        $event->setInvoker($e);

    }

    public function preUpdate(Doctrine_Event $event)
    {
        echo 'updating a record...';
    }
}

